configure vlan ipaddress

configure [ {vlan} vlan_name | vlan vlan_id] ipaddress [ipaddress {netmask} | {ipNetmask} | ipv6-link-local | {eui64} ipv6_address_mask]

Description

Assigns an IPv4 address and an optional subnet mask or an IPv6 address to the VLAN (Virtual LAN). Beginning with ExtremeXOS 11.2, you can specify IPv6 addresses. You can assign either an IPv4 address, and IPv6 address, or both to the VLAN. Beginning with ExtremeXOS 11.3, you can use this command to assign an IP address to a specified VMAN and enable multicasting on that VMAN.

Note

Note

You can also use this command to assign an IP address to a VMAN on all platforms that support the VMAN feature. For information on which software licenses and platforms support the VMAN feature, see the ExtremeXOS 22.7 Feature License Requirements document.

Syntax Description

vlan_name Specifies a VLAN name.
vlan_id Specifies a VLAN ID.
ipaddress Specifies an IPv4 address.
netmask Specifies an IPv4 subnet mask in dotted-quad notation (for example, 255.255.255.0). This parameter supports 255.255.255.254 for 31-bit prefixes.
ipNetmask Specifies an IPv4 prefix mask in CIDR notation. This parameter supports /31 for 31-bit prefixes.
ipv6-link-local Specifies IPv6 and configures a link-local address generated by combining the standard link-local prefix with the automatically generated interface in the EUI-64 format. Using this option automatically generates an entire IPv6 address; this address is only a link-local, or VLAN-based, IPv6 address; that is, ports on the same segment can communicate using this IP address and do not have to pass through a gateway.
eui64 Specifies IPv6 and automatically generates the interface ID in the EUI-64 format using the interface‘s MAC address. Once you enter this parameter, you must add the following variables: ipv6_address_mask. Use this option when you want to enter the 64-bit prefix and use a EUI-64 address for the rest of the IPv6 address.
ipv6_address_mask Specify the IPv6 address in the following format: x:x:x:x:x:x:x:x/prefix length, where each x is the hexadecimal value of one of the 8 16-bit pieces of the 128-bit wide address.

Default

N/A.

Usage Guidelines

The VLAN must already exist before you can assign an IP address; use the create vlan command to create the VLAN (also the VMAN must already exist).

Note

Note

If you plan to use the VLAN as a control VLAN for an EAPS (Extreme Automatic Protection Switching) domain, do NOT configure the VLAN with an IP address. For information about adding secondary IP addresses to VLANs, see the IPv4 Unicast Routing section in the ExtremeXOS 22.7 User Guide .

Beginning with ExtremeXOS 11.2, you can specify IPv6 addresses. For information about IPv6 addresses, see the IPv6 Unicast Routing section in the ExtremeXOS 22.7 User Guide.

Beginning with ExtremeXOS 11.3, you can assign an IP address (including IPv6 addresses) to a VMAN. Beginning with version 11.4, you can enable multicasting on that VMAN.

Beginning with ExtremeXOS 15.7.1, you can configure IPv4 addresses with 31-bit prefixes on network VLANs and the Mgmt VLAN.

To enable multicasting on the specified VMAN once you assigned an IP address, take the following steps:

  1. Enable IP multicast forwarding.
  2. Enable and configure multicasting.

Example

The following examples are equivalent; both assign an IPv4 address of 10.12.123.1 to a VLAN named "accounting":

configure vlan accounting ipaddress 10.12.123.1/24
configure vlan accounting ipaddress 10.12.123.1 255.255.255.0 

The following example assigns a link local IPv6 address to a VLAN named management:

configure vlan accounting ipaddress ipv6-link-local

History

This command was first available in ExtremeXOS 10.1.

The IPv6 parameters were added in ExtremeXOS 11.2.

Support for 31-bit prefixes on IPv4 addresses was added in ExtremeXOS in 15.7.1.

The vlan_id variable is first available in ExtremeXOS 16.1.

Platform Availability

This command is available on the Summit X450-G2, X460-G2, X670-G2, X770, and ExtremeSwitching X440-G2, X590, X620, X690, X870 series switches.